package com.augurit.wf.bi.web.form;


public class WfActElemPrivDefForm extends WfPrivControlForm{
	
	// 属性
	private Long id;
	private Long elementId;
	private Long templateId;
	private boolean hidden;
	private boolean locked;
	
	
	
	//扩展属性
	private String elementName;
	private String elementCode;
	private String elementType;

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	public Long getElementId() {
		return this.elementId;
	}

	public void setElementId(Long elementId) {
		this.elementId = elementId;
	}
	
	public Long getTemplateId() {
		return templateId;
	}

	public void setTemplateId(Long templateId) {
		this.templateId = templateId;
	}

	public boolean isHidden() {
		return hidden;
	}

	public void setHidden(boolean hidden) {
		this.hidden = hidden;
	}

	public boolean isLocked() {
		return locked;
	}

	public void setLocked(boolean locked) {
		this.locked = locked;
	}

	
	public String getElementName() {
		return elementName;
	}

	public void setElementName(String elementName) {
		this.elementName = elementName;
	}
	
	public String getElementCode() {
		return elementCode;
	}

	public void setElementCode(String elementCode) {
		this.elementCode = elementCode;
	}

	/**
	 * 判断是否配置了元素权限（即把元素设置为hidden, locked）
	 * @return
	 */
	public  boolean haveAlreadyConfigElemPriv(){
		return this.haveAlreadySetElemHidden() || this.haveAlreadySetElemLocked();
	}
	
	public  boolean haveAlreadySetElemHidden(){
		return this.isHidden();
	}
	
	public  boolean haveAlreadySetElemLocked(){
		return this.isLocked();
	}

	public String getElementType() {
		return elementType;
	}

	public void setElementType(String elementType) {
		this.elementType = elementType;
	}
}
